package game.tileMap.model
{
	/**
	 *玩家队伍 
	 * @author ganweida
	 * 
	 */	
	public class Party extends Troop
	{
		public function Party()
		{
			
		}
		
		override protected  function init():void{
			members=[];
		}
		
		
		override public function get isAllDead():Boolean{
			return existing_members.length==0;
		}
		
		
		
		
		
		//需修正
		public function setup(troopId:int):void{
			clear();
			for (var i:int=1;i<4;i++){
					var  actor:Actor = db.getActor(i.toString());
					actor.x=i
					actor.y=10
					//			      enemy.hidden = int(member.@hidden);
					//			      enemy.immortal = int(member.@immortal);
					//			      enemy.screen_x = member.@x
					//			      enemy.screen_y = member.@y
					members.push(actor)
					
					
				}
				
			
			
		}
		
		public function clear():void{
			this.clear_actions();
			for each (var actor:Actor in members){
				actor.clear_action_results();
				
			}
		}
		
	}
}